library _;

import 'package:flutter/material.dart';
import 'package:flutter_app/Const/IFinal.dart';
import 'package:flutter_app/Page/Cart/Main/main.dart';
import 'package:flutter_yfree/YFree.dart';

class MainPage_Cart extends YKeepAlivePage {
  CartPageController? controller;

  @override
  void yOnCreate() {}

  @override
  bool ySafeAreaBottom() => false;

  @override
  Widget yBuild(BuildContext context) {
    return Container(
      color: IFinal.Colors.pageBG,
      child: Column(
        children: [
          Expanded(
            child: YStatefulWidget(
              () => CartPage(
                isSinglePage: false,
                onCreate: (controller) => this.controller = controller,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
